package org.zjx.team;

import lombok.Getter;

@Getter
public enum TeamType {
    SINGLE("单人队伍", false, 1),
    RANDOM("随机队伍", true, 2),
    FIXED("固定队伍", false, 5),
    LEVEL("等级限制队伍", true, 5),
    EVENT("活动队伍", true, 5);

    private final String displayName;
    private final boolean autoMatch; // 是否自动匹配
    private final int maxSize; // 最大人数

    TeamType(String displayName, boolean autoMatch, int maxSize) {
        this.displayName = displayName;
        this.autoMatch = autoMatch;
        this.maxSize = maxSize;
    }

    public boolean allowsAutoJoin() {
        return this != SINGLE && this != FIXED;
    }
}
